home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 8 / developer source - volume 8.iso / dobbs / oct96 / shepf101.gif < prev    next >
Graphics Interchange Format  |  1997-04-17  |  67KB  |  474x332  |  4-bit (16 colors)
Labels: text | screenshot | font | number | rectangle | parallel | diagram
OCR: RegisterDragDrop() Data Consumer /Drop Target HWND Chwind hund DataObject @ Data DropSource @ Producer Drop Target hWnd Data Data producer calls Consumer Wir dows DoDragDrop(IDataObject, hund (DataSource) RegisterDragDrop() OLE enters a modal loop, constantly examining the cursor position and the state Data consumers indicate their desire of the mouse buttons and keyboard. OLE to receive drag and drop notifications calls the IDrop Target functions associated by calling RegisterDragDrop(). This with the window handle over which the function associates a window handle cursor is positioned, calling the producer's with a live IDropTarget interface pointer. (DropSource GiveFeedback() function as necessary. Figure 1: OLE drag-and-drop at the COM level.